class Results::R26 < Results::R25
  def self.get_comment_revised clicks, comments, stows, ops={}
    if ops[:hot_bangumi]
      if comments <= 0
        E_C.to_f
      else
        [format("%.2f", E_C.to_f * ([clicks * 1.5, clicks + 20000].min) / (clicks.to_f + comments.to_f * E_C)).to_f, E_C.to_f].min
      end
    else
      if comments <= 0
        E_C.to_f
      else
        [format("%.2f", E_C * (stows * E_C) / (clicks.to_f + comments.to_f * E_C)).to_f, E_C.to_f].min
      end
    end
  end
  
  def comment_revised
    if is_hot_bangumi?
      self.class.get_comment_revised click_point, comments, stows, :hot_bangumi => true
    else
      self.class.get_comment_revised clicks, comments, stows
    end
  end
end

